/**
 * @file
 * @author dousha
 * @date 2020/11/30.
 */

#include "blink.h"
#include <stdint.h>
#include <stm32f1xx_hal.h>

static uint8_t time = 0;

void blink_update() {
	++time;
	if (time >= 10) {
		time = 0;
		HAL_GPIO_TogglePin(BLINK_BANK, BLINK_PORT);
	}
}
